package hk.com.ocsl.registry
{
	import flash.utils.Dictionary;
	
	
	
	public class Registry
	{
		protected static var _registry:Object = {};
		public function Registry()
		{
		}
		
		public static function getNamespace(name:String):Dictionary
		{
			if(!hasNamespace(name))
				return _registry[name] = new Dictionary();
			return _registry[name];	
				
		}
		public static function hasNamespace(name:String):Boolean
		{
			return _registry[name] != null; 
		}
		
		

	}
}